import {Environment} from "./components/core/Environment.js";
import {Banditer} from "./components/entity/Banditer";
import {PushCar} from "./components/entity/PushCar";
import {House} from "./components/entity/House";
import {SoundGirl} from "./components/entity/SoundGirl";
import {Robot} from "./components/entity/Robot";
import {GrassBlock} from "./components/entity/GrassBlock";
import {Bird} from "./components/entity/Bird";
import {TextBox} from "./components/controller/TextBox";
import {LandBlock} from "./components/entity/LandBlock";
import {RunCar} from "./components/entity/RunCar";

const environment = new Environment();

environment.addRender(new LandBlock(0, 0, 0));
environment.addRender(new LandBlock(100, 0, 100));
environment.addRender(new LandBlock(-100, 0, -100));
environment.addRender(new LandBlock(-100, 0, 100));
environment.addRender(new LandBlock(100, 0, -100));
environment.addRender(new LandBlock(0, 0, -100));
environment.addRender(new LandBlock(0, 0, 100));
environment.addRender(new LandBlock(-100, 0, 0));
environment.addRender(new LandBlock(100, 0, 0));

/*const runCar = new RunCar(environment.scene);
environment.addRender(runCar);*/
/*
environment.addRender(new LandBlock(0, 0, 0));
*/
const girl = new SoundGirl();
environment.addRender(girl);

/*const robot = new Robot();
environment.addRender(robot);*/
/*const banditer = new Banditer();
environment.addRender(banditer);*/
/*const banditer = new Banditer(environment.scene, environment.camera, environment.light, environment.cameraControl);
environment.addRender(banditer);
const pushCar = new PushCar(environment.scene, environment.camera, environment.renderer);
environment.addRender(pushCar);
const house = new House(environment.scene, environment.camera, environment.renderer);
environment.addRender(house);
const house2 = new House(environment.scene, environment.camera, environment.renderer);
house2.position.set(-900, 0, 0)
environment.addRender(house2);
const girl = new SoundGirl(environment.scene, environment.camera, environment.renderer);
environment.addRender(girl);

/!*const runCar = new RunCar(environment.scene);
environment.addRender(runCar);*!/

const robot = new Robot(environment.scene);
environment.addRender(robot);

const grassBlock = new GrassBlock(environment.scene);
environment.addRender(grassBlock);

const bird = new Bird(environment.scene);
environment.addRender(bird);
const textBox = new TextBox(environment.scene, environment.camera);
environment.addRender(textBox);*/
environment.render();
